package com.gopay.bis.service.bank.impl;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

import com.gopay.common.Result;
import com.gopay.common.constants.proccode.ProcCodeConstants;
import com.gopay.common.util.spring.SpringContextUtil;
import com.gopay.remote.bank.SignInInteractRemoteService;
/**
 * 浦发代扣签到接口
 * BankSignInInteractServiceImpl.java
 * @author jiangxiangjiao
 * @2016年11月8日 
 */
@Service("signInInteractService")
public class BankSignInInteractServiceImpl implements SignInInteractRemoteService{
	

	private static Logger logger = LoggerFactory.getLogger(BankSignInInteractServiceImpl.class);

	@Override
	public Result signIn(Object base) {
        Result result = new Result();
        try{ 
        	SignInInteractRemoteService signInService = (SignInInteractRemoteService)SpringContextUtil.getBean("SPDBADPAY-EXPAY");
        	result= signInService.signIn(base);
	    } catch (Exception e) {
	        logger.error("BankSignInInteractServiceImpl signIn error: ", e);
	        result.setResultCode(ProcCodeConstants.PROC_CODE_100F1002);
	        result.setSuccess(false);
	    }
    return result;
	}
	

}
